package com.tang.user;

import androidx.work.Data;

import java.util.List;

/**
 * Created by Snow on 2017/3/4.
 * Description:
 */

public class UserInfo {


    /**
     * abbreviation : 循音科技
     * accessToken : 28ff5641-6ce1-4452-8fdd-cfa0cc965214
     * avatar : portrait/doctor_1_01.png
     * hospitalId : 67918961378852864
     * loginName : 12345678901
     * menuList : [{"children":[],"display":1,"hospitalId":"0","id":"126357656897060864","parentId":"0","remark":"1","scope":1,"showOrder":1,"style":"","title":"我的心音样本","url":""},{"children":[],"display":1,"hospitalId":"0","id":"126357904390356992","parentId":"0","remark":"2","scope":1,"showOrder":2,"style":"","title":"标注包","url":""},{"children":[],"display":1,"hospitalId":"0","id":"126358042210992128","parentId":"0","remark":"3","scope":1,"showOrder":3,"style":"","title":"标注工作台","url":""},{"children":[],"display":1,"hospitalId":"0","id":"126358136645746688","parentId":"0","remark":"4","scope":1,"showOrder":4,"style":"","title":"审核包","url":""},{"children":[],"display":1,"hospitalId":"0","id":"126358231558651904","parentId":"0","remark":"5","scope":1,"showOrder":5,"style":"","title":"审核工作台","url":""},{"children":[],"display":1,"hospitalId":"0","id":"126358339113189376","parentId":"0","remark":"6","scope":1,"showOrder":6,"style":"","title":"样本仲裁","url":""}]
     * realName : 超级管理员
     * role : {"id":"3124295500824576","name":"超级管理员","roleLevel":90}
     * userId : 66195784999108608
     */

    private String abbreviation;
    private String accessToken;
    private String avatar;
    private String hospitalId;
    private String loginName;
    private String realName;
    private RoleBean role;
    private String userId;
    private List<MenuListBean> menuList;

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public RoleBean getRole() {
        return role;
    }

    public void setRole(RoleBean role) {
        this.role = role;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<MenuListBean> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<MenuListBean> menuList) {
        this.menuList = menuList;
    }

    public static class RoleBean {
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getRoleLevel() {
            return roleLevel;
        }

        public void setRoleLevel(Integer roleLevel) {
            this.roleLevel = roleLevel;
        }

        /**
         * id : 3124295500824576
         * name : 超级管理员
         * roleLevel : 90
         */

        private String id;
        private String name;
        private Integer roleLevel;
    }

    public static class MenuListBean {
        public Integer getDisplay() {
            return display;
        }

        public void setDisplay(Integer display) {
            this.display = display;
        }

        public String getHospitalId() {
            return hospitalId;
        }

        public void setHospitalId(String hospitalId) {
            this.hospitalId = hospitalId;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public Integer getScope() {
            return scope;
        }

        public void setScope(Integer scope) {
            this.scope = scope;
        }

        public Integer getShowOrder() {
            return showOrder;
        }

        public void setShowOrder(Integer showOrder) {
            this.showOrder = showOrder;
        }

        public String getStyle() {
            return style;
        }

        public void setStyle(String style) {
            this.style = style;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public List<?> getChildren() {
            return children;
        }

        public void setChildren(List<?> children) {
            this.children = children;
        }

        /**
         * children : []
         * display : 1
         * hospitalId : 0
         * id : 126357656897060864
         * parentId : 0
         * remark : 1
         * scope : 1
         * showOrder : 1
         * style :
         * title : 我的心音样本
         * url :
         */

        private Integer display;
        private String hospitalId;
        private String id;
        private String parentId;
        private String remark;
        private Integer scope;
        private Integer showOrder;
        private String style;
        private String title;
        private String url;
        private List<?> children;
    }
}
